package org.prem.spring.jdbctemplate;

import org.springframework.context.ApplicationContext;
import org.springframework.context.support.ClassPathXmlApplicationContext;

public class JdbcDemo {

	public static void main(String args[]){
		ApplicationContext context = new ClassPathXmlApplicationContext("spring-dao.xml");
		JdbcDaoImpl dao = context.getBean("jdbcDaoImpl",JdbcDaoImpl.class);
		Circle circle = dao.getCircleId(1);
		System.out.println("name---->"+circle.getName());
	}
}
